const express=require('express')
const router=require('./router')
const controller=require("./controller")
const bodyParser = require('body-parser')
const cron=require('node-cron')
const app=express();

app.use("/chx",router)
app.use(bodyParser.json())


cron.schedule("0 0 9 * * *", function() {
    controller.toWechart();
});

app.listen(8081,()=>{
    console.log("the server listen on port 8081");
});

